<html>
  <head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body class="tundra">
	<script type="text/javascript" src="../../../../lib/dojo/dojo/dojo.js.uncompressed.js"
		djConfig="isDebug: true, debugAtAllCosts: true, parseOnLoad: false, usePlainJson: true"></script>
	<style>
		@import "../../../../lib/dojo/dijit/themes/tundra/tundra.css"; /* required when dijit */	
		@import "../../view/resources/rforms.css";
		html, body {
			height: 100%;
			width: 100%;
			padding: 0px;
			margin: 0px;
		}
	</style>
	<script type="text/javascript">
		dojo.registerModulePath("rforms","../../../src/rforms");
		dojo.registerModulePath("rdfjson","../../../src/rdfjson");
		dojo.require("rforms.template.ItemStore");
		dojo.require("rforms.template.Converter");
		dojo.require("rforms.template.tests.data");
		dojo.require("rforms.formulator.StoreManager");
		dojo.require("rdfjson.Graph");
		dojo.require("rdfjson.tests.data");
		dojo.require("rforms.model.Engine");
		dojo.require("rforms.view.Editor");
		dojo.addOnLoad(function() {
			var itemStore = new rforms.template.ItemStore();
			var xhrArgs = {
				url: "../../common/foaf-sirff.json",
				sync: true,
				handleAs: "json-comment-optional"
			};
			var req = dojo.xhrGet(xhrArgs);
			req.addCallback(function(source) {
				itemStore.createTemplate(source)
				var storeManager = new rforms.formulator.StoreManager({itemStore: itemStore}, "_node");
				storeManager.startup();
			});
		});
	</script>
	<div id="_node"></div>
  </body>
</html>
